controller: Flood local IGMP/MLD queries in L2 domain only. - #324
Closed
DeokarT wants to merge 1 commit into
Closed
Conversation
Locally generated IGMP/MLD membership queries were injected into OFTABLE_LOCAL_OUTPUT with outport set to MC_FLOOD. That floods the query to every local port, including patch ports towards logical routers. In scaled topologies with many VIFs and/or many connected routers, the nested resubmits exceed OVS's 4096 resubmit limit and the packet-out is dropped. Snooped queries are already re-injected with MC_FLOOD_L2. Use the same key for locally generated queries so they stay in the L2 broadcast domain (RFC 4541) and skip router ports that would drop the traffic anyway. Reported-at: https://issues.redhat.com/browse/OCPBUGS-114016 Signed-off-by: Trushna Deokar <tdeokar@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Collaborator
|
Thanks for the contribution, @DeokarT! As discussed privately, it's probably better if you post this as a patch to our development mailing list, as documented in our guidelines: https://github.com/ovn-org/ovn/blob/main/Documentation/internals/contributing/submitting-patches.rst Feel free to CC me on the patch or to reach out if you face any issues while doing that. Regards, |
Author
|
Closing in favor of a mailing-list submission to dev@openvswitch.org per OVN contributing guidelines. GitHub PRs are not the review path for this project. The OpenShift-side change for OCPBUGS-114016 is openshift/ovn-kubernetes#3424 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Locally generated IGMP/MLD membership queries were injected into
OFTABLE_LOCAL_OUTPUTwith outport set toMC_FLOOD. That floods the query to every local port, including patch ports towards logical routers.In scaled topologies (many VIFs and/or many connected routers, e.g. OpenShift UDN gateway routers) the nested resubmits exceed OVS's 4096 resubmit limit.
ovs-vswitchdthen drops the packet-out:Snooped queries are already re-injected with
MC_FLOOD_L2viaip_mcast_forward_query(). This change uses the same key for locally generated querier queries so they stay in the L2 broadcast domain (RFC 4541) and skip router ports that would drop the traffic anyway.This is the remaining IGMP path after ARP/GARP fan-out was reduced; those packets still used
MC_FLOODand skipped northd'seth.mcast && ip→_MC_flood_l2split.Test plan
IGMP snoop/querier/relayand MLD querier tests updated to assert queries reach the local switch VIFs and do not appear on other switches' portsmake check(IGMP/MLD querier tests)Reported-at: https://issues.redhat.com/browse/OCPBUGS-114016
Signed-off-by: Trushna Deokar tdeokar@redhat.com